package com.eastfair.es.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.formula.functions.T;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class EsPage<T> implements Serializable {

    @ApiModelProperty(value = "页面大小", example = "10")
    private long size = 20;

    @ApiModelProperty(value = "当前页", example = "1")
    private long current = 1;


    @ApiModelProperty(value = "总条数", example = "1")
    private long total;

    @NotNull(message = "查询对象model不能为空")
    @ApiModelProperty(value = "查询参数", required = true)
    private T model;
}
